using SmartLink.EnumLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartLink.Domain.Entity
{
    /// <summary>
    /// 数据授权
    /// </summary>
    public class PER_DataAuthorization : BaseEntity
    {
        /// <summary>
        /// 模块编码
        /// </summary>
        public string ModuleCode { get; set; }

        /// <summary>
        /// 授权范围类型
        /// </summary>
        public AuthorizationScopeEnum AuthorizationScope { get; set; }

        /// <summary>
        /// 所有者类型
        /// </summary>
        public AuthorizationOwnerTypeEnum OwnerType { get; set; }

        /// <summary>
        /// 所有者ID
        /// </summary>
        public int OwnerID { get; set; }

        /// <summary>
        /// 自定义资源ID
        /// </summary>
        public int? CustomResourceID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public int Creator { get; set; }
    }
}
